Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [EUDIW-210] Add debug overlay screen #52

Merged
merged 6 commits into from
Jan 14, 2025

Conversation

LazyAfternoons
Copy link
Contributor

@LazyAfternoons LazyAfternoons commented Jan 3, 2025

Short description

This PR reintroduces the debug overlay screen which shows debug data if the debug mode is enabled. It can be shown by using the useDebugInfo hook. Information can be seen by pressing the ladybug in the screen which implements this hook and the error can copied as well.

List of changes proposed in this pull request

  • Introduces all the required components to render the debug overlay and the react-native-clipboard dependency to copy the error;
  • Add the store for the debug mode flag and the debug data;
  • Create a root container which contains the debug overlay and the main stack navigator;
  • Add a switch in the settings screen to enabled and disable the debug mode;

How to test

  • Open the settings;
  • Enabled the debug mode;
  • You should be able to see the overlay;
  • Try to obtain a PID and when the in app browser pops up just cancel the process with the button in the top left;
  • You should be able to see the ladybug in the error screen, press it and test the debug overlay.

Copy link

github-actions bot commented Jan 3, 2025

Jira Pull Request Link

This Pull Request refers to the following Jira issue EUDIW-210

@LazyAfternoons LazyAfternoons marked this pull request as ready for review January 3, 2025 14:39
@LazyAfternoons LazyAfternoons merged commit 5a6c845 into main Jan 14, 2025
3 checks passed
@LazyAfternoons LazyAfternoons deleted the EUDIW-210-add-debug-overlay branch January 14, 2025 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants